package rs.domain;

/* Classe che rappresenta un tag */
public class Tag implements Comparable<Tag> {

	private String name;
	private Double weight;
	
	public Tag(String name, Double weight) {
		this.name = name;
		this.weight = weight;
	}

	public String getName() {
		return name;
	}

	public Double getWeight() {
		return weight;
	}

	@Override
	public int compareTo(Tag t) {
		return t.getWeight().compareTo(this.weight);
	}
	
}
